﻿using BackData;
using Domain.DTOs.RBAC;
using MediatR;

namespace Team.API.Applocation.Command.Users
{
    /// <summary>
    /// 用户查询命令
    /// </summary>
    public class QuseyUserCommand : IRequest<APIPaging<UserDTO>>
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; } = 1;

        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        /// 角色筛选
        /// </summary>
        public long? RoleId { get; set; }

        /// <summary>
        /// 部门筛选
        /// </summary>
        public long? DepartmentId { get; set; }

        /// <summary>
        /// 用户账号模糊查询
        /// </summary>
        public string? Username { get; set; }
    }
}
